.class Lcom/estrongs/android/pop/app/PopVideoPlayer$k;
.super Landroid/os/Handler;
.source "PopVideoPlayer.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/PopVideoPlayer;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/PopVideoPlayer;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ui/view/ESVideoView;->isPlaying()Z

    move-result p1

    if-eqz p1, :cond_11

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ui/view/ESVideoView;->pause()V

    goto/16 :goto_1

    :cond_0
    const/4 v2, 0x2

    const-wide/16 v3, 0xbb8

    const/4 v5, 0x3

    const/4 v6, 0x0

    if-ne v0, v2, :cond_4

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Z

    move-result v0

    if-eqz v0, :cond_1

    return-void

    .line 5
    :cond_1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;

    move-result-object v0

    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/view/ESVideoView;->setVideoURI(Landroid/net/Uri;)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->w(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->z(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    .line 9
    :cond_2
    iget v0, p1, Landroid/os/Message;->arg1:I

    if-lez v0, :cond_3

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;

    move-result-object v0

    iget v2, p1, Landroid/os/Message;->arg1:I

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/view/ESVideoView;->seekTo(I)V

    .line 11
    :cond_3
    iget v0, p1, Landroid/os/Message;->arg2:I

    .line 12
    iget p1, p1, Landroid/os/Message;->arg1:I

    if-nez p1, :cond_11

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "3gpp"

    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_11

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->D(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/os/Handler;

    move-result-object p1

    invoke-virtual {p1, v5}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, p1, v3, v4}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_1

    :cond_4
    if-ne v0, v5, :cond_5

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/esclasses/ESVideoController;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->a()V

    goto/16 :goto_1

    :cond_5
    const/4 p1, 0x4

    if-ne v0, p1, :cond_6

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->D(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/os/Handler;

    move-result-object p1

    invoke-virtual {p1, v5}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, p1, v3, v4}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    goto/16 :goto_1

    :cond_6
    const/4 p1, 0x5

    if-ne v0, p1, :cond_9

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result p1

    if-nez p1, :cond_11

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->E(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/esclasses/j;

    move-result-object p1

    if-eqz p1, :cond_11

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-virtual {p1}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-nez p1, :cond_11

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->E(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/esclasses/j;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/FrameLayout;->isShown()Z

    move-result p1

    if-eqz p1, :cond_7

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->c(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer$u;->a()Z

    move-result p1

    if-nez p1, :cond_8

    .line 22
    :cond_7
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->E(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/esclasses/j;

    move-result-object p1

    invoke-virtual {p1, v6}, Lcom/estrongs/android/pop/esclasses/j;->a(I)V

    .line 23
    :cond_8
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    goto/16 :goto_1

    :cond_9
    const/4 p1, 0x6

    if-ne v0, p1, :cond_a

    .line 24
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->E(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/esclasses/j;

    move-result-object p1

    if-eqz p1, :cond_11

    .line 25
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->E(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/esclasses/j;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/j;->a()V

    goto/16 :goto_1

    :cond_a
    const/4 p1, 0x7

    if-ne v0, p1, :cond_b

    .line 26
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v6}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_1

    :cond_b
    const/16 p1, 0x8

    if-ne v0, p1, :cond_c

    .line 27
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_1

    :cond_c
    const/16 v1, 0x9

    if-ne v0, v1, :cond_11

    .line 28
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->getCurrentPosition()I

    move-result v0

    int-to-long v2, v0

    .line 29
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->e(Lcom/estrongs/android/pop/app/PopVideoPlayer;)J

    move-result-wide v4

    cmp-long v0, v2, v4

    if-eqz v0, :cond_e

    .line 30
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->b()Z

    move-result v0

    if-nez v0, :cond_d

    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_d

    .line 31
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V

    .line 32
    :cond_d
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-static {p1, v4, v5}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b(Lcom/estrongs/android/pop/app/PopVideoPlayer;J)J

    .line 33
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1, v2, v3}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Lcom/estrongs/android/pop/app/PopVideoPlayer;J)J

    goto :goto_0

    .line 34
    :cond_e
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f(Lcom/estrongs/android/pop/app/PopVideoPlayer;)J

    move-result-wide v4

    sub-long/2addr v2, v4

    const-wide/16 v4, 0x7d0

    cmp-long p1, v2, v4

    if-lez p1, :cond_10

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    .line 35
    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ui/view/ESVideoView;->b()Z

    move-result p1

    if-nez p1, :cond_f

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ui/view/ESVideoView;->isPlaying()Z

    move-result p1

    if-eqz p1, :cond_10

    .line 36
    :cond_f
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v6}, Landroid/view/View;->setVisibility(I)V

    .line 37
    :cond_10
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/os/Handler;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    .line 38
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/os/Handler;

    move-result-object v0

    const-wide/16 v1, 0x3e8

    invoke-virtual {v0, p1, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    :catch_0
    :cond_11
    :goto_1
    return-void
.end method
